graypy This function randomly selects and returns a GELF (Graylog Extended Log Format) handler from the Graylog third-party library. GELF is a binary log format optimized for log transmission and storage. The function uses `random.choice` to randomly select between GELFHandler and GelfUdpHandler, then creates an instance of the corresponding handler based on the choice. The type of code 2024-12-16 12:17:37 22 views
graylog This function sends a query through the Graylog client and returns the stream name of the first message that matches the query. If the query does not match any messages, it returns None. Function 2024-12-16 12:16:43 16 views
graypy json This function uses the graypy library from the Graylog third-party library to send events to the Graylog server. It takes a message and a source as parameters, then formats these informations into JSON format and sends them to the Graylog server via a Socket connection. Function 2024-12-16 12:16:29 21 views
graypy This function creates a GELF (Gelf) handler for sending logs to a Graylog server. GELF is a lightweight logging format commonly used for remote log management. The type of code 2024-12-16 12:15:15 18 views
Graylog third-party This function extracts a specific field from a Graylog message. If the field does not exist, it returns None. Function 2024-12-16 12:14:09 8 views
graypy logging This function simulates querying Graylog for messages that match a specific query on a given stream. Function 2024-12-16 12:13:21 14 views
Python Graypy This function is used to process information and send it to Graylog, with specified source and priority. Python Function 2024-12-16 12:12:50 19 views
graypy json This function parses a Graylog event message and extracts relevant information, returning a dictionary containing the parsed information. Function 2024-12-16 12:12:48 19 views
graypy GELFHandler This function uses the Graylog third-party library to send a query to the Graylog server and returns a placeholder indicating that the query has been sent. Function 2024-12-16 12:11:50 20 views
Graylog API This function uses the Graylog API client to query the stream ID for a given stream name. It accepts the stream name, query, and an instance of the Graylog API client as parameters, and returns the found stream ID or None. If the query does not return any results, None is returned. Function 2024-12-16 12:11:14 11 views